  /**
   * Generate time : 2016-04-11 13:28:00
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cg.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCGDutyscheduleDeploy 
 * table comment : 领导值班配置表 
 */
public class ZMCGDutyscheduleDeploy extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdBeginDate = " ";		/* 起始日期*/
	private String fdEndDate = " ";		/* 结束日期*/
	private String fdMiningLeader = " ";		/* 矿领导姓名*/
	private String fdDdLeader = " ";		/* 调度主任姓名*/
	private String fdDdPerson = " ";		/* 调度员姓名*/
	private String fdMiningId = " ";		
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdBeginDate");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("起始日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEndDate");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("结束日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningLeader");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿领导姓名");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDdLeader");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("调度主任姓名");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDdPerson");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("调度员姓名");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningId");
	eiColumn.setFieldLength(16);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCGDutyscheduleDeploy() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdBeginDate - 起始日期
	 * @return the fdBeginDate
	 */
	public String getFdBeginDate() {
		return this.fdBeginDate;
	}
	
	/**
	 * set the fdBeginDate - 起始日期
	 */
	public void setFdBeginDate(String fdBeginDate) {
		this.fdBeginDate = fdBeginDate;
	}
	/**
	 * get the fdEndDate - 结束日期
	 * @return the fdEndDate
	 */
	public String getFdEndDate() {
		return this.fdEndDate;
	}
	
	/**
	 * set the fdEndDate - 结束日期
	 */
	public void setFdEndDate(String fdEndDate) {
		this.fdEndDate = fdEndDate;
	}
	/**
	 * get the fdMiningLeader - 矿领导姓名
	 * @return the fdMiningLeader
	 */
	public String getFdMiningLeader() {
		return this.fdMiningLeader;
	}
	
	/**
	 * set the fdMiningLeader - 矿领导姓名
	 */
	public void setFdMiningLeader(String fdMiningLeader) {
		this.fdMiningLeader = fdMiningLeader;
	}
	/**
	 * get the fdDdLeader - 调度主任姓名
	 * @return the fdDdLeader
	 */
	public String getFdDdLeader() {
		return this.fdDdLeader;
	}
	
	/**
	 * set the fdDdLeader - 调度主任姓名
	 */
	public void setFdDdLeader(String fdDdLeader) {
		this.fdDdLeader = fdDdLeader;
	}
	/**
	 * get the fdDdPerson - 调度员姓名
	 * @return the fdDdPerson
	 */
	public String getFdDdPerson() {
		return this.fdDdPerson;
	}
	
	/**
	 * set the fdDdPerson - 调度员姓名
	 */
	public void setFdDdPerson(String fdDdPerson) {
		this.fdDdPerson = fdDdPerson;
	}
	/**
	 * get the fdMiningId 
	 * @return the fdMiningId
	 */
	public String getFdMiningId() {
		return this.fdMiningId;
	}
	
	/**
	 * set the fdMiningId 
	 */
	public void setFdMiningId(String fdMiningId) {
		this.fdMiningId = fdMiningId;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdBeginDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdBeginDate")), fdBeginDate));
		setFdEndDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEndDate")), fdEndDate));
		setFdMiningLeader(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningLeader")), fdMiningLeader));
		setFdDdLeader(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDdLeader")), fdDdLeader));
		setFdDdPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDdPerson")), fdDdPerson));
		setFdMiningId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningId")), fdMiningId));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdBeginDate",StringUtils.toString(fdBeginDate, eiMetadata.getMeta("fdBeginDate")));	
			map.put("fdEndDate",StringUtils.toString(fdEndDate, eiMetadata.getMeta("fdEndDate")));	
			map.put("fdMiningLeader",StringUtils.toString(fdMiningLeader, eiMetadata.getMeta("fdMiningLeader")));	
			map.put("fdDdLeader",StringUtils.toString(fdDdLeader, eiMetadata.getMeta("fdDdLeader")));	
			map.put("fdDdPerson",StringUtils.toString(fdDdPerson, eiMetadata.getMeta("fdDdPerson")));	
			map.put("fdMiningId",StringUtils.toString(fdMiningId, eiMetadata.getMeta("fdMiningId")));	
			
		return map;
	
	}
}